﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ChinaClipping.ClippingMaster.Model
{
    public class Property
    {
        private string _name;
        private string _id;
        private Dictionary<string, string> _options;

        public Property(string id, string name, Dictionary<string, string> options, bool multiSelect=false)
        {
            this._id = id;
            this._name = name;
            this._options = options;
            this.MultiSelect = multiSelect;
        }

        /// <summary>
        /// 获取属性ID
        /// </summary>
        public string Id
        {
            get { return _id; }
        }
        /// <summary>
        /// 获取属性名称
        /// </summary>
        public string Name
        {
            get { return _name; }
        }
        /// <summary>
        /// 获取选项
        /// </summary>
        public Dictionary<string, string> Options
        {
            get { return _options; }
        }

        public bool MultiSelect
        {
            get;
            private set;
        }
    }
}
